package mc

import (
	"gitee.com/dreamwood/ez-go/db/mgo"
)

const (
	SellOrderPayTypeEventNew           = "erp.SellOrderPayTypeNew"
	SellOrderPayTypeEventBeforeCreate  = "erp.SellOrderPayTypeBeforeCreate"
	SellOrderPayTypeEventBeforeUpdate  = "erp.SellOrderPayTypeBeforeUpdate"
	SellOrderPayTypeEventBeforeSave    = "erp.SellOrderPayTypeBeforeCreate erp.SellOrderPayTypeBeforeUpdate"
	SellOrderPayTypeEventAfterCreate   = "erp.SellOrderPayTypeAfterCreate"
	SellOrderPayTypeEventAfterUpdate   = "erp.SellOrderPayTypeAfterUpdate"
	SellOrderPayTypeEventAfterSave     = "erp.SellOrderPayTypeAfterCreate erp.SellOrderPayTypeAfterUpdate"
	SellOrderPayTypeEventDelete        = "erp.SellOrderPayTypeDelete"
	SellOrderPayTypeAccessControlEvent = "erp.SellOrderPayTypeAccessControl"
)

func GetSellOrderPayTypeConfig() *mgo.DocConfig {
	return SellOrderPayType_Config
}

var SellOrderPayType_Config *mgo.DocConfig

func init() {
	SellOrderPayType_Config = NewSellOrderPayTypeConfig()
}
func NewSellOrderPayTypeConfig() *mgo.DocConfig {
	return &mgo.DocConfig{
		ContainerKey: "erp.SellOrderPayType",
		Fields: []string{
			"name", "sort",
		},
		RelationFields:  []string{},
		RelationConfigs: map[string]*mgo.DocRelation{},
		FieldFilter: map[string]*mgo.DocFieldFilter{
			"default": {
				Select: []string{},
				Omit:   []string{},
			},
		},
	}
}
